import 'dart:async';
import 'package:flutter/services.dart';

///自己写的插件，目前只支持android
class AppPlugin {
  static const MethodChannel _channel = const MethodChannel('AppPlugin');

  ///获取url
  static Future<String> get getBaseUrl async {
    final String version = await _channel.invokeMethod('getBaseUrl');
    return version;
  }

  ///密钥
  static Future<String> get getAppSecret async {
    final String version = await _channel.invokeMethod('getAppSecret');
    return version;
  }
}
